<%-- 
    Document   : quanlylichsubid
    Created on : Jan 6, 2012, 12:34:06 AM
    Author     : HoangLiem
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<link href="style/bid_history.css" rel="stylesheet" type="text/css"/>

<div class="title">YOUR BID HISTORY</div>
<div class="item" style="background-color:#EEE;">
    <div class="item_0"><b>Id</b></div>
    <div class="item_1"><b>Time</b></div>
    <div class="item_2"><b>Username</b></div>
    <div class="item_3"><b>Product name</b></div>
    <div class="item_4"><b>Bid price</b></div>
    <div class="item_5"><b>Auction status</b></div>
</div>
<c:choose>
    <c:when test="${dschitiet != null && dschitiet.size() > 0}">
        <c:forEach var="i" begin="0" end="${dschitiet.size() - 1}" step="1">
            <div class="item">
                <div class="item_0">${i}</div>
                <div class="item_1">${dschitiet[i].thoiDiemDauGia}</div>
                <div class="item_2">${dschitiet[i].thanhvien.tenDangNhap}</div>
                <div class="item_3"><a target="_blank" href="chiTietSanPham?id=${dschitiet[i].sanpham.maSanPham}">${dschitiet[i].sanpham.tenSanPham}</a></div>
                <div class="item_4">${dschitiet[i].getGiaDauString()},000 VNĐ</div>
                <c:choose>
                    <c:when test="${dschitiet[i].sanpham.timesBetween() <= 0}">
                <div class="item_5">Closed</div>
                    </c:when>
                    <c:otherwise>
                        <div class="item_5">Opening</div>
                    </c:otherwise>
                </c:choose>
            </div>
        </c:forEach>
    </c:when>
    <c:otherwise>
        <div class="item_3"><h3 style="color:#00C;">YOU HAVE NOT BID ANY PRODUCT !</h3> </div>
    </c:otherwise>
</c:choose>
